package com.cxrj.zhsq.base.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class JumpController {
	/**
	 * 跳转登录页面
	 * 
	 * @return
	 */
	@RequestMapping("jump_login")
	public ModelAndView jump_login() {
		return new ModelAndView("WEB-INF/jsp/login");
	}

	/**
	 * 跳转欢迎页面
	 * 
	 * @return
	 */
	@RequestMapping("jump_welcome")
	public ModelAndView jump_welcome() {
		return new ModelAndView("WEB-INF/jsp/welcome");
	}

	/**
	 * 跳转首页
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_index")
	public ModelAndView jump_index(String a, HttpServletRequest request) {
		Map<String, Object> resultMap = new HashMap<String, Object>();
		// if (a.equals("")) {
		// request.getSession().invalidate();
		// return new ModelAndView("WEB-INF/jsp/login");
		// }
		// resultMap.put("roleId", a);
		return new ModelAndView("WEB-INF/jsp/index", "map", resultMap);
	}

	/**
	 * 跳转菜单管理页
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_menu")
	public ModelAndView jump_menu() {
		return new ModelAndView("WEB-INF/jsp/userManage/meau_info");
	}

	/**
	 * 跳转角色表格页
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_role")
	public ModelAndView jump_role() {
		return new ModelAndView("WEB-INF/jsp/userManage/role_info");
	}

	/**
	 * 跳转组织结构页
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_organization")
	public ModelAndView jump_organization() {
		return new ModelAndView("WEB-INF/jsp/userManage/organization_info");
	}

	/**
	 * 跳转用户管理页
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_user")
	public ModelAndView jump_user() {
		return new ModelAndView("WEB-INF/jsp/userManage/user_info");
	}

	/**
	 * 跳转系统消息
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_system_message_info")
	public ModelAndView jump_system_message_info() {
		return new ModelAndView("WEB-INF/jsp/userManage/system_message_info");
	}

	/**
	 * 跳转日志页面
	 * 
	 * @return
	 */
	@RequestMapping("jump_log")
	public ModelAndView jump_log() {
		return new ModelAndView("WEB-INF/jsp/userManage/log_info");
	}

	/**
	 * 
	 * @author: HanXing
	 * @date: 2018年3月22日 上午9:11:07
	 * @Function: AppUserController.java
	 * @Description: 跳转APP用户列表
	 * @param:
	 * @return：key:返回结果描述
	 *
	 */
	@RequestMapping(value = "jump_AppUserList")
	public ModelAndView jump_AppUserList() {
		return new ModelAndView("WEB-INF/jsp/userManage/AppUserList");
	}

	/**
	 * 跳转找书记
	 * 
	 * @return
	 */
	@RequestMapping("jump_secretary")
	public ModelAndView jump_secretary() {
		return new ModelAndView("WEB-INF/jsp/communityManage/secretary_info");
	}

	/**
	 * 跳转便民服务
	 * 
	 * @return
	 */
	@RequestMapping("jump_civilian_service")
	public ModelAndView jump_civilian_service() {
		return new ModelAndView("WEB-INF/jsp/civilianManage/civilian_service_info");
	}

	/**
	 * 跳转社区发布
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_notice")
	public ModelAndView jump_notice() {
		return new ModelAndView("WEB-INF/jsp/noticeManage/notice_info");
	}

	/**
	 * 跳转诉求管理
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_release")
	public ModelAndView jump_release() {
		return new ModelAndView("WEB-INF/jsp/noticeManage/release_info");
	}

	/**
	 * 跳转工单
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_work_order")
	public ModelAndView jump_work_order() {
		return new ModelAndView("WEB-INF/jsp/noticeManage/work_order_info");
	}

	/**
	 * 跳转志愿者招募页面
	 * 
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value = "jump_volunteer_recruit")
	public ModelAndView jump_volunteer_recruit(HttpServletRequest request, HttpServletResponse response) {
		return new ModelAndView("WEB-INF/jsp/redCommunity/volunteerRecruit");
	}

	/**
	 * 跳转志愿者风采页面
	 * 
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value = "jump_volunteer_mien")
	public ModelAndView jump_volunteer_mien(HttpServletRequest request, HttpServletResponse response) {
		Map<String, Object> map = new HashMap<String, Object>();
		/*
		 * String userName =
		 * request.getSession().getAttribute("userName").toString();
		 * map.put("userName", userName); return new
		 * ModelAndView("WEB-INF/jsp/redCommunity/Mien",map);
		 */
		return new ModelAndView("WEB-INF/jsp/redCommunity/Mien");
	}

	/**
	 * 跳转党员管理页面
	 * 
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value = "jump_party_member_list")
	public ModelAndView jump_party_member_list(HttpServletRequest request, HttpServletResponse response) {
		return new ModelAndView("WEB-INF/jsp/partyMember/party_member_list");
	}

	/**
	 * 跳转党建学习
	 * 
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value = "jump_study")
	public ModelAndView jump_study(HttpServletRequest request, HttpServletResponse response) {
		return new ModelAndView("WEB-INF/jsp/partyMember/study");
	}

	/**
	 * 跳转找居委会
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_committee_info")
	public ModelAndView jump_committee_info() {
		return new ModelAndView("WEB-INF/jsp/communityManage/committee_info");
	}

	/**
	 * 跳转找居委会预约
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_committee_order")
	public ModelAndView jump_committee_order() {
		return new ModelAndView("WEB-INF/jsp/communityManage/committee_order");
	}

	/**
	 * 跳转一键提报
	 * 
	 * @return
	 */
	@RequestMapping("jump_forward")
	public ModelAndView jump_forward() {
		return new ModelAndView("WEB-INF/jsp/communityManage/forward_info");
	}

	/**
	 * 跳转党员风采
	 * 
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value = "jump_party_member_mien")
	public ModelAndView jump_party_member_mien(HttpServletRequest request, HttpServletResponse response) {
		return new ModelAndView("WEB-INF/jsp/partyMember/party_member_mien");
	}

	/**
	 * 跳转党员活动
	 * 
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value = "jump_party_member_activity")
	public ModelAndView jump_party_member_activity(HttpServletRequest request, HttpServletResponse response) {
		return new ModelAndView("WEB-INF/jsp/partyMember/party_member_activity");
	}

	/**
	 * 跳转找群团
	 * 
	 * @return
	 */
	@RequestMapping("jump_group")
	public ModelAndView jump_group() {
		return new ModelAndView("WEB-INF/jsp/communityManage/group_info");
	}

	/**
	 * 
	 * @return
	 */
	@RequestMapping("jump_directories")
	public ModelAndView jump_directories() {
		return new ModelAndView("WEB-INF/jsp/userManage/directories_info");
	}

	/**
	 * 跳转党员任岗
	 * 
	 * @return
	 */
	@RequestMapping("jump_jobs_apply")
	public ModelAndView jump_jobs_apply() {
		return new ModelAndView("WEB-INF/jsp/partyMember/jobs_apply");
	}

	/**
	 * 跳转社区圈
	 * 
	 * @return
	 */
	@RequestMapping("jump_community")
	public ModelAndView jump_community() {
		return new ModelAndView("WEB-INF/jsp/communityManage/circle_info");
	}

	/**
	 * 跳转法律服务
	 * 
	 * @return
	 */
	@RequestMapping("jump_legal_service")
	public ModelAndView jump_legal_service() {
		return new ModelAndView("WEB-INF/jsp/civilianManage/legal_service_info");
	}

	/**
	 * 跳转相关部门
	 * 
	 * @return
	 */
	@RequestMapping("jump_relevant_departments_info")
	public ModelAndView jump_relevant_departments_info() {
		return new ModelAndView("WEB-INF/jsp/civilianManage/relevant_departments_info");
	}

	/**
	 * 跳转人员管理
	 * 
	 * @return
	 */
	@RequestMapping("jump_personnel_info")
	public ModelAndView jump_personnel_info() {
		return new ModelAndView("WEB-INF/jsp/administrate/personnel_info");
	}

	/**
	 * 跳转房产管理
	 * 
	 * @return
	 */
	@RequestMapping("jump_property_info")
	public ModelAndView jump_property_info() {
		return new ModelAndView("WEB-INF/jsp/administrate/property_info");
	}

	/**
	 * 跳转车辆管理
	 * 
	 * @return
	 */
	@RequestMapping("jump_vehicle_info")
	public ModelAndView jump_vehicle_info() {
		return new ModelAndView("WEB-INF/jsp/administrate/vehicle_info");
	}

	/**
	 * 跳转门禁管理
	 * 
	 * @return
	 */
	@RequestMapping("jump_door_info")
	public ModelAndView jump_door_info() {
		return new ModelAndView("WEB-INF/jsp/userManage/door_info");
	}
}
